/*!
 *  @LastEditors: zhanghengxin ezreal.zhang@icewhale.org
 *  @LastEditTime: 2023/1/9 下午10:15
 *  @FilePath: /CasaOS-UI/src/assets/scss/common/_variables.scss
 *  @Description:
 *
 *  Copyright (c) 2022 by IceWhale, All Rights Reserved.
 */

// Included below are all the defined variables from Bulma
// Modify as needed, removing the !default attribute.
// Bulma Variables
@import "~bulma/sass/utilities/_all";
// Colors


$black: hsl(0, 0%, 4%) !default;
$black-bis: hsl(0, 0%, 7%) !default;
$black-ter: hsl(0, 0%, 14%) !default;

$grey-darker: hsl(0, 0%, 21%) !default;
$grey-dark: hsl(0, 0%, 29%) !default;
$grey: hsl(0, 0%, 48%) !default;
$grey-light: hsl(0, 0%, 71%) !default;
$grey-lighter: hsl(0, 0%, 86%) !default;

$white-ter: hsl(0, 0%, 96%) !default;
$white-bis: hsl(0, 0%, 98%) !default;
$white: hsl(0, 0%, 100%) !default;

$orange: hsl(14, 100%, 53%) !default;
$yellow: hsl(48, 100%, 67%) !default;
$green: hsla(118, 70%, 45%, 1) !default;
$turquoise: hsl(171, 100%, 41%) !default;
$casablue: hsl(216, 90%, 54%) !default;
$cyan: hsl(204, 86%, 53%) !default;
$blue: hsla(208, 100%, 45%, 1) !default;
$purple: hsl(271, 100%, 71%) !default;
$red: hsl(348, 100%, 61%) !default;
$pot: rgb(214, 167, 56) !default;

// Typography

$family-sans-serif: -apple-system,
BlinkMacSystemFont,
Roboto,
"Segoe UI",
"Helvetica Neue",
"Noto Sans",
"Noto Sans CJK SC",
"Microsoft YaHei",
"PingFang SC",
"微软雅黑",
sans-serif;
$family-monospace: monospace !default;
$render-mode: optimizeLegibility !default;

$size-1: 3rem !default;
$size-2: 2.5rem !default;
$size-3: 2rem !default;
$size-4: 1.5rem !default;
$size-5: 1.25rem !default;
$size-6: 1rem !default;
$size-7: 0.75rem !default;

$weight-light: 300 !default;
$weight-normal: 400 !default;
$weight-medium: 500 !default;
$weight-semibold: 600 !default;
$weight-bold: 700 !default;

// Responsiveness

// The container horizontal gap, which acts as the offset for breakpoints
$gap: 32px !default;
// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
$tablet: 769px !default;
// 960px container + 4rem
$desktop: 960px+(2 * $gap) !default;
// 1152px container + 4rem
$widescreen: 1152px+(2 * $gap) !default;
// 1344px container + 4rem;
$fullhd: 1304px+(2 * $gap) !default;

// Miscellaneous
$image-placeholder-blur-enabled: false;
$image-placeholder-blur: 0px;
$easing: ease-out !default;
$radius-small: 2px !default;
$radius: 3px !default;
$radius-large: 5px !default;
$radius-rounded: 290486px !default;
$speed: 86ms !default;

// Flags

$variable-columns: true !default;


// The default Bulma derived variables are declared below

$primary: $turquoise !default;

$info: $cyan !default;
$success: $green !default;
$warning: $yellow !default;
$danger: $red !default;

$light: $white-ter !default;
$dark: $grey-darker !default;

// Invert colors

$orange-invert: findColorInvert($orange) !default;
$yellow-invert: findColorInvert($yellow) !default;
$green-invert: findColorInvert($green) !default;
$turquoise-invert: findColorInvert($turquoise) !default;
$cyan-invert: findColorInvert($cyan) !default;
$blue-invert: findColorInvert($blue) !default;
$purple-invert: findColorInvert($purple) !default;
$red-invert: findColorInvert($red) !default;

$primary-invert: $turquoise-invert !default;
$info-invert: $cyan-invert !default;
$success-invert: $green-invert !default;
$warning-invert: $yellow-invert !default;
$danger-invert: $red-invert !default;
$light-invert: $dark !default;
$dark-invert: $light !default;

// General colors

$background: $white-ter !default;

$border: $grey-lighter !default;
$border-hover: $grey-light !default;

// Text colors

$text: $grey-dark !default;
$text-invert: findColorInvert($text) !default;
$text-light: $grey !default;
$text-strong: $grey-darker !default;

// Code colors

$code: $red !default;
$code-background: $background !default;

$pre: $text !default;
$pre-background: $background !default;

// Link colors

$link: $blue !default;
$link-invert: $blue-invert !default;
$link-visited: $purple !default;

$link-hover: $grey-darker !default;
$link-hover-border: $grey-light !default;

$link-focus: $grey-darker !default;
$link-focus-border: $blue !default;

$link-active: $grey-darker !default;
$link-active-border: $grey-dark !default;

$link-light: findLightColor($link);
$link-dark: findDarkColor($link);

// Typography

$family-primary: $family-sans-serif !default;
$family-code: $family-monospace !default;

$size-small: $size-7 !default;
$size-normal: $size-6 !default;
$size-medium: $size-5 !default;
$size-large: $size-4 !default;


// CasaOS Variables
$grey-100: hsla(208, 16%, 96%, 1) !default;
$grey-200: hsla(208, 16%, 94%, 1);
$grey-300: hsla(208, 16%, 91%, 1);
$grey-600: hsla(208, 14%, 58%, 1);
$grey-400: hsla(208, 16%, 85%, 1) !default;
$gray-800: hsla(208, 20%, 20%, 1);

// Colors
$casablue: hsl(216, 90%, 54%) !default;

$primary: $casablue;
$primary-light: findLightColor($primary);
$primary-dark: findDarkColor($primary);
$primary-invert: findColorInvert($primary);
$ghost: $casablue;
$ghost-light: findLightColor($ghost);
$ghost-dark: findDarkColor($ghost);
$ghost-invert: findColorInvert($ghost);

$facebook: #1977F3;
$twitter: #1D9BF0;
$reddit: #FF4500;


// Lists and maps
$custom-colors: ("grey": ($grey-600, $white)) !default;
$custom-shades: null !default;

// Setup $colors to use as bulma classes (e.g. 'is-twitter')
$colors: mergeColorMaps(("white": ($white,
$black,
),
				"black": ($black,
				$white,
				),
				"light": ($light,
				$light-invert,
				),
				"dark": ($dark,
				$dark-invert,
				),
				"primary": ($primary,
				$primary-invert,
				$primary-light,
				$primary-dark,
				),
				"link": ($link,
				$link-invert,
				$link-light,
				$link-dark,
				),
				"info": ($info,
				$info-invert,
				$info-light,
				$info-dark,
				),
				"success": ($success,
				$success-invert,
				$success-light,
				$success-dark,
				),
				"warning": ($warning,
				$warning-invert,
				$warning-light,
				$warning-dark,
				),
				"danger": ($danger,
				$danger-invert,
				$danger-light,
				$danger-dark,
				),
				"facebook":($facebook,
				$white),
				"twitter":($twitter,
				$white),
				"reddit":($reddit,
				$white),
),
				$custom-colors);

// Links
$link: $primary;
$link-invert: $primary-invert;
$link-focus-border: $primary;


// BackDrop 
$backDropColor: rgba(90, 108, 124, 0.4);
$backDropBlur: none;
$backDropBorderRadius: 10px;

// Avatar
$avatar-border-color: hsl(0, 0%, 89%);

// Loading
$loading-icon-size: 2.5rem;
// $loading-background:rgba(255, 255, 255, 0);

// Modal
$modal-background-background-color: rgba(0, 0, 0, 0.5);

// SideBar
$sidebar-width: 22.5rem;

// Toast
$toast-border-radius: 6px;
$toast-opacity:1;
$toast-box-shadow:0px 16px 32px -8px rgba(28, 31, 34, 0.12);

// Snackbar
$snackbar-background-color: $white;
$snackbar-color: $gray-800;
$snackbar-border-radius: 6px;
$snackbar-button-text-transform: none;
$snackbar-box-shadow: 0px 16px 32px rgba(28, 31, 34, 0.12);
// _colors.scss
$grey-100: hsla(208, 16%, 96%, 1) !default;
$grey-200: hsla(208, 16%, 94%, 1);
$grey-600: hsla(208, 14%, 58%, 1);
$grey-400: hsla(208, 16%, 85%, 1) !default;
$gray-800: hsla(208, 20%, 20%, 1);

